package org.permission.pojo;

import java.util.List;

import javax.annotation.Resource;

public class SysPermission {

	@Resource
	private Integer id;
	
	private String text;
	
	private String type;
	
	private String url;
	
	private String percode;
	
	private Integer parentId;
	
	private String sortstring;
	
	private List<SysPermission> children;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getSortstring() {
		return sortstring;
	}

	public void setSortstring(String sortstring) {
		this.sortstring = sortstring;
	}


	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getPercode() {
		return percode;
	}

	public void setPercode(String percode) {
		this.percode = percode;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}


	public List<SysPermission> getChildren() {
		return children;
	}

	public void setChildren(List<SysPermission> children) {
		this.children = children;
	}

	@Override
	public String toString() {
		return "SysPermission [id=" + id + ", text=" + text + ", type=" + type + ", url=" + url + ", percode=" + percode
				+ ", parentId=" + parentId + ", sortstring=" + sortstring + ", children=" + children + "]";
	}


	
	
}
